<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="sidebar">
	<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
	
   <h:form>		
		 <p:panel header="Short List RRFs">   
            
	             <p:dataTable id="viewrrfs" value="#{recruiterRRFsListBean.recruitmentRequestList}" var="viewrrf" >  
	  
		            <p:column headerText="RRF Code"> 
		                <h:outputText value="#{viewrrf.recruitmentRequestCode}" />
		            </p:column>  
		  
		            <p:column headerText="Raised By"> 
		                <h:outputText value="#{viewrrf.employee.firstName} #{viewrrf.employee.lastName}" />  
		            </p:column> 
		            
		            <p:column headerText="Request Date">
		                <h:outputText value="#{viewrrf.requestDate}"/>  
		            </p:column>  
		            
		            <p:column headerText="Tehnology">
		                <h:outputText value="#{viewrrf.technology.displayName}"/>
		            </p:column> 
		             
		            <p:column headerText="No of Resources"> 
		                <h:outputText value="#{viewrrf.noofPositions}"/> 
		            </p:column>  
		             
		            <p:column headerText="Years of Exp">  
		                <h:outputText value="#{viewrrf.relaventExperienceFrom} - #{viewrrf.relaventExperienceTo}" />  
		            </p:column>  
		            
		             <p:column headerText="Priority">  
		                <h:outputText value="#{viewrrf.recruitmentPriority}" />  
		            </p:column>  
		            
		            <p:column headerText="View RRF" > 
		                <p:commandButton action="#{recruiterRRFsListBean.viewRRFAction}" value="VIEW">			
							<f:param id="employeeId" name="employeeId" value="#{viewRRFsListBean.wamUser.employee.employeeCode}" />
							<f:param id="rrfCode" name="rrfCode" value="#{viewrrf.recruitmentRequestCode}" />
							<f:param id="recruiterCode" name="recruiterCode" value="#{viewrrf.recruiter.employeeCode}" />
						</p:commandButton>
		            </p:column>
		        
		            <p:column headerText="Schedule" > 
		                <p:commandButton action="#{recruiterRRFsListBean.scheduleRRFsAction}" value="SCHEDULE 1st LEVEL">							
							<f:param  name="rrfCode" value="#{viewrrf.recruitmentRequestCode}" />
							<f:param  name="activity" value="ScheduleByRecruiter" />
						</p:commandButton>
		            </p:column>
		            
		            <p:column headerText="Finalize Schedule Time" > 
		                <p:commandButton action="#{recruiterRRFsListBean.scheduleRRFsAction}" value="FINALIZE SCHEDULE TIMES">							
							<f:param name="rrfCode" value="#{viewrrf.recruitmentRequestCode}" />
							<f:param  name="activity" value="FinalizeScheduleTimes" />
						</p:commandButton>
		            </p:column>
		          
	            </p:dataTable>  	            
         </p:panel>
		</h:form>
	</ui:define>
</ui:composition>